<script setup lang="ts">
defineOptions({
  name: "InviteFriend"
});
</script>
<template>
  <div class="sidebar-card">
    <h3>邀请有奖</h3>
    <input type="text" placeholder="邀请链接" class="invite-input" readonly />
    <button class="copy-button">复制链接</button>
    <ul class="invite-rules">
      <li>邀请好友，双方都得100金币奖励</li>
      <li>输入邀请码，得100金币</li>
      <li>每月最多可获500金币</li>
    </ul>
  </div>
</template>

<style scoped>
.invite-input {
  width: 100%;
  padding: 6px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.copy-button {
  background-color: #2979ff;
  color: white;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
}
.copy-button:hover {
  background-color: #66b1ff;
}
.invite-rules {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  color: #666;
}
.invite-rules li {
  margin-bottom: 5px;
}
</style>
